package clueless.utilities;

public class Card {

	private String m_type;  // character, weapon, or room
	private String m_value; // Col MUstard, candlestick, Study, etc.

	public Card(String type, String value) {
		m_type = type;
		m_value = value;
	}
	
	public String getType() {
		return m_type;
	}

	public String getValue() {
		return m_value;
	}
	
	static public boolean isCharacter(String text) {
		if (text.toLowerCase().equals(Character.m_COL_MUSTARD .toLowerCase())) return true;
		if (text.toLowerCase().equals(Character.m_MISS_SCARLET.toLowerCase())) return true;
		if (text.toLowerCase().equals(Character.m_MR_GREEN    .toLowerCase())) return true;
		if (text.toLowerCase().equals(Character.m_MRS_PEACOCK .toLowerCase())) return true;
		if (text.toLowerCase().equals(Character.m_MRS_WHITE   .toLowerCase())) return true;
		if (text.toLowerCase().equals(Character.m_PROF_PLUM   .toLowerCase())) return true;
		return false;
	}

	static public boolean isWeapon(String text) {
		if (text.toLowerCase().equals(Weapon.m_CANDLESTICK.toLowerCase())) return true;
		if (text.toLowerCase().equals(Weapon.m_KNIFE      .toLowerCase())) return true;
		if (text.toLowerCase().equals(Weapon.m_LEAD_PIPE  .toLowerCase())) return true;
		if (text.toLowerCase().equals(Weapon.m_REVOLVER   .toLowerCase())) return true;
		if (text.toLowerCase().equals(Weapon.m_ROPE       .toLowerCase())) return true;
		if (text.toLowerCase().equals(Weapon.m_WRENCH     .toLowerCase())) return true;
		return false;
	}

	static public boolean isRoom(String text) {
		if (text.toLowerCase().equals(Room.m_STUDY        .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_HALL         .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_LOUNGE       .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_LIBRARY      .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_BILLIARD_ROOM.toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_DINING_ROOM  .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_CONSERVATORY .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_BALLROOM     .toLowerCase())) return true;
		if (text.toLowerCase().equals(Room.m_KITCHEN      .toLowerCase())) return true;
		return false;
	}

}
